﻿using System;
using System.ServiceModel;

namespace FastNet
{
	[ServiceContract( Namespace = "FastNet", CallbackContract = typeof( ICommandChannel ), SessionMode = SessionMode.Required )]
	internal interface ICommandChannel
	{
		[OperationContract( IsInitiating = true )]
		void Open( String username, String password );


		[OperationContract( IsOneWay = true, IsInitiating = false )]
		void Send( Byte[] data );
	}
}
